-- GENERATED SPELL FOR [Inferno Elemental] --


function spell0_5852(pUnit, Event) --@Flame Spray,n/a--
pUnit:FullCastSpellOnTarget(10733,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5852', 1700, 1)
end

function Sorts_5852(pUnit, Event)
local choix_sorts_5852 = math.random(0, 0)
if choix_sorts_5852 == 0 then
pUnit:RegisterEvent('spell0_5852', 1, 1)
end
end

function mob5852_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5852', math.random(1500, 3000), 1)
end

function mob5852_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5852_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5852_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5852, 1, 'mob5852_Action')
RegisterUnitEvent(5852, 2, 'mob5852_Leave')
RegisterUnitEvent(5852, 3, 'mob5852_Kill')
RegisterUnitEvent(5852, 4, 'mob5852_Die')
